
testability = I../../eth-core-infrastructure/control-channel/inc
AbstractionAPI = I../../eth-core-infrastructure/network-stack-abstraction/pub

all:
	#g++ -shared -o libUDPModule.so src/*.c  -$(testability) -$(AbstractionAPI) -Iinc -Ipub -std=c++11 -fPIC -fpermissive
	$(CXX) -shared -o libUDPModule.so src/*.c  -$(testability) -$(AbstractionAPI) -Iinc -Ipub -std=c++11 -fPIC -fpermissive
install: libUDPModule.so
	sudo cp libUDPModule.so /usr/lib1

uinstall:
	sudo rm -rf /usr/lib1/libUDPModule.so

tests:
	$(CXX) -std=c++11 test/main.c -lpthread -$(testability) -$(AbstractionAPI) -Ipub -Iinc -L/usr/lib -lUDPModule -lAbstractionAPI -lTestabilityProtocol -fpermissive -o main
clean:
	rm -rf bin *.o *.so main

